public class HardWork {
    public int a = 10;//就地初始化
    public int b = 20;//就地初始化
    public String c = "zhangsan";//就地初始化

    public void setWork(int a,  int b, String c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    public void printWork() {
        System.out.println(a + "-" + b + "-" + c);
    }
    public static void main(String[] args) {
        HardWork work = new HardWork();
        work.printWork();
        System.out.println();
    }
}
